﻿using Ping9719.WpfEx.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace AutoFlatnessTest.ViewModel
{
    public class UcSetInfoVModel : BindableBase
    {
        private Visibility vis = Visibility.Collapsed;
        /// <summary>
        /// 显示无法连接
        /// </summary>
        public Visibility Vis
        {
            get { return vis; }
            set { vis = value; RaisePropertyChanged(nameof(Vis)); }
        }

        private Visibility visLjck = Visibility.Collapsed;
        /// <summary>
        /// 显示无法连接
        /// </summary>
        public Visibility VisLjck
        {
            get { return visLjck; }
            set { visLjck = value; RaisePropertyChanged(nameof(VisLjck)); }
        }

        #region 界面文本
        private string moSHi;
        public string MoShi
        {
            get { return moSHi; }
            set { moSHi = value; RaisePropertyChanged(nameof(MoShi)); }
        }

        private string yz;
        public string Yz
        {
            get { return yz; }
            set { yz = value; RaisePropertyChanged(nameof(Yz)); }
        }

        private string smi;
        public string Smi
        {
            get { return smi; }
            set { smi = value; RaisePropertyChanged(nameof(Smi)); }
        }

        private string sma;
        public string Sma
        {
            get { return sma; }
            set { sma = value; RaisePropertyChanged(nameof(Sma)); }
        }


        private string ztai;

        public string Ztai
        {
            get { return ztai; }
            set { ztai = value; RaisePropertyChanged(nameof(Ztai)); }
        }

        #endregion

        /// <summary>
        /// 设置连接失败
        /// </summary>
        public void SetLjsb()
        {
            string weizhi = "-";
            VisLjck = Visibility.Visible;

            MoShi = weizhi;
            Yz = weizhi;
            Smi = weizhi;
            Sma = weizhi;
        }

    }
}
